package com.koron.order.common.mapper;

import com.koron.order.common.bean.po.OrderExecute;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * (OrderExecute)表数据库访问层
 *
 * @author zhouj
 * @since 2021-09-03 16:27:30
 */
public interface OrderExecuteMapper {

    OrderExecute queryById(String id);

    Date queryMaxFactEndTimeByOrderId(String orderId);

    List<OrderExecute> queryList(OrderExecute orderExecute);

    int insert(OrderExecute orderExecute);

    int update(OrderExecute orderExecute);

    int deleteById(String id);

    int insertBatch(@Param("list") List<OrderExecute> orderExecuteList);

    int deleteByOrderId(String orderId);

    int insertOrUpdate(OrderExecute orderExecute);

    int deleteOrderExecute(@Param("orderId") String orderId, @Param("orderExecuteId") String orderExecuteId);
}